import request from '@/utils/request'

export function promiseUpdate(data) {
  return request({
    url: '/user/statement/update',
    method: 'post',
    data
  })
}

export function promiseFind(data) {
  return request({
    url: '/user/statement/find',
    method: 'post',
    data
  })
}

export function mainFind(data) {
  return request({
    url: '/user/info/find',
    method: 'post',
    data
  })
}

export function list(data) {
  return request({
    url: '/user/info/list',
    method: 'post',
    data
  })
}

export function mainUpdate(data) {
  return request({
    url: '/user/info/update3',
    method: 'post',
    data
  })
}

export function mainFindSave(data) {
  return request({
    url: '/user/info/find/save',
    method: 'post',
    data
  })
}

export function mainSave(data) {
  return request({
    url: '/user/info/save',
    method: 'post',
    data
  })
}

export function getUserTime(data) {
  return request({
    url: '/user/time',
    method: 'post',
    data
  })
}

export function getAllInfo(data) {
  return request({
    url: '/user/info/find',
    method: 'post',
    data
  })
}

export function getAllInfo2(data) {
  return request({
    url: '/user/info/find3',
    method: 'post',
    data
  })
}
